
var a1 = 0;
var a2 = 0;
function changecolor(){
	var e1 = document.getElementsByClassName("detail-star");
//	alert(e1[0].style.display)
	
	if (a1%2==0) {
		e1[0].style.display = "none";
		e1[1].style.display = "block";
		a1++;
	} else{
		e1[0].style.display = "block";
		e1[1].style.display = "none";
		a1++;
	}
}
//var color = window.getComputedStyle(
//document.querySelector('.element'), ':before'
//).getPropertyValue('color')

function changenum(){
	
	if(a2==0){
		var style=document.createElement('style');
		style.innerHTML="#my-header-right::before{content: '1'}";
		document.head.appendChild(style);
		a2++;
	}
	else if(a2==1){
		var style=document.createElement('style');
		style.innerHTML="#my-header-right::before{content: none}";
		document.head.appendChild(style);
		
		var e1 = document.getElementsByClassName("my-tip");
		e1[0].style.display = "none";
		e1[1].style.display = "block";
		
		var e2 = document.getElementById("my-header-right");
		e2.style.animationIterationCount = "1";
	}
}
